<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if($this->session->userdata('logged_in')){?>
	<div id='entrance'>
		<a href='<?=$links->makeLink( 'user/profile' )?>'>Привет, <?=$this->session->userdata('nick')?>!</a>
		<a id='logout' href='<?=$links->makeLink( 'user/logout' )?>'>Выход</a>
	</div>
<?}else{?>
	<script type="text/javascript" src="<?=$links->base_url?>js/jquery/forms/userEnter.js"></script>
	<div id="dialogEnter" title="Вход пользователя">
		<form id='userEnterForm' method='POST' action="<?=$links->makeLink( 'user/logon' )?>" >
			<p id="validateTips">Заполните все поля.</p>
			<fieldset>
				<div>
					<label for="email">E-mail</label>
					<input type="text" name="email" id="email" value="" class="text ui-widget-content ui-corner-all required email" />
				</div>
				<div>
					<label for="password">Пароль</label>
					<input type="password" name="password" id="password" value="" class="text ui-widget-content ui-corner-all required" />
				</div>
				<div>
					<? include("capcha.php"); 
						$capcha = new capcha_view;
						$capcha -> base_url = $this->config->item('base_url');
						$capcha -> show();
					?>
				</div>
			</fieldset>
		</form>
	</div>
	<div id='entrance'><a href='#' id="enter-user">Войти в систему</a></div>
<?}
/* End of file header.php */
/* Location: ./system/application/views/inc/user.php */
?>
